﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ShowEmployees.aspx.cs" Inherits="Bitirme.Views.ShowEmployees" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset class="login">
        <legend>Çalışanlar</legend>
        <center>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource1" CssClass="GridStyle" GridLines="None"
            onRowCommand = "GridView1_OnRowCommand" >
            <Columns>
            <asp:BoundField DataField="ID" HeaderText="No" SortExpression="ID" />
            <asp:BoundField DataField="Name" HeaderText="İsim" SortExpression="Name" />
            <asp:BoundField DataField="SurName" HeaderText="Soyisim" 
                SortExpression="SurName" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="SalaryPerDay" HeaderText="Günlük Maaş" 
            SortExpression="SalaryPerDay" />
            <asp:BoundField DataField="HourPerDay" HeaderText="Günlük Çalışma Saati" 
            SortExpression="HourPerDay" />
            <asp:ButtonField CommandName="update" ButtonType="Button" Text="Güncelle" />
            <asp:ButtonField CommandName="delete" ButtonType="Button" Text="Çalışanı Sil" />
            <asp:ButtonField ButtonType="Button" CommandName="select" 
            HeaderText="Görüntüle" ShowHeader="True" Text="Çalışanı Görüntüle" />
    </Columns>
    <RowStyle CssClass="RowStyle" />
    <EmptyDataRowStyle CssClass="EmptyRowStyle" />
    <PagerStyle CssClass="PagerStyle" />
    <SelectedRowStyle CssClass="SelectedRowStyle" />
    <HeaderStyle CssClass="HeaderStyle" />
    <EditRowStyle CssClass="EditRowStyle" />
    <AlternatingRowStyle CssClass="AltRowStyle" />

        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetAllEmployees" TypeName="Bitirme.Controllers.EmployeeHandler">
        </asp:ObjectDataSource>
        </center>
    <p></p>
    </fieldset>
</asp:Content>
